import { IPSSysImage } from './ipssys-image';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSSysImageImpl extends PSModelObjectImpl implements IPSSysImage {
  get codeName(): string {
    return this.M.codeName;
  }

  get cssClass(): string {
    return this.M.cssClass;
  }

  get cssClassX(): string {
    return this.M.cssClassX;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get glyph(): string {
    return this.M.glyph;
  }

  get height(): number {
    return this.M.height != null ? this.M.height : 0;
  }

  get imagePath(): string {
    return this.M.imagePath;
  }

  get imagePathX(): string {
    return this.M.imagePathX;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get rawContent(): string {
    return this.M.rawContent;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get width(): number {
    return this.M.width != null ? this.M.width : 0;
  }

  get cls(): string {
    return 'PSSysImageImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'res.IPSSysImage') return true;
    return super.instanceof(cls);
  }
}
